import request from '@/utils/http'

export function login (data) {
  return request({
    url: '/api/platform/sysMain/login/v1',
    method: 'post',
    data
  })
}

export function getInfo (data) {
  return request({
    url: '/api/platform/authority/dynamicMenu/v1',
    method: 'post',
    data
  })
}

export function logout () {
  return request({
    url: '/user/logout',
    method: 'post'
  })
}
